﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2010A.Shopping.Domain
{
    /// <summary>
    /// 规格表
    /// </summary>
    [Table("tb_product_spec")]
    public class ProductSpecModel:AuditFieldKey<Guid>
    {
        /// <summary>
        /// 规格名称
        /// </summary>
        public string Name { get; set; }
    }
    /// <summary>
    /// 分类规格表
    /// </summary>
    [Table("tb_product_category_spec")]
    public class ProductCategorySpecModel:AuditFieldKey<Guid>
    {
        /// <summary>
        /// 分类的id
        /// </summary>
        public Guid CategoryId { get; set; }

        /// <summary>
        /// 规格的id
        /// </summary>
        public Guid SpecId { get; set; }
    }

    //分类规格值表
    [Table("tb_product_category_spec_value")]
    public class ProductCategorySpecValueModel:AuditFieldKey<Guid>
    {
        /// <summary>
        /// 分类规格表的id
        /// </summary>
        public Guid CategorySpecId { get; set; }
        /// <summary>
        /// 分类对应的规格的值
        /// </summary>
        public string Value { get; set; }
    }
}
